package com.pine.app.module.security.core;

/**
 * @author xiaoyuan
 * @create 2020/3/18 15:00
 **/
public class UsernamePasswordAuthenticationToken extends AbstractAuthenticationToken {
    private static final long serialVersionUID = 500L;
    private final Object principal;
    private final Object credentials;


    public UsernamePasswordAuthenticationToken(Object aPrincipal, Object aCredentials) {
        this.principal = aPrincipal;
        this.credentials = aCredentials;
    }

    public Object getCredentials() {
        return this.credentials;
    }

    public Object getPrincipal() {
        return this.principal;
    }
}
